package demo2;

public class Derived extends Base{
    public int a = 10;
    public byte b = 20;

    public void func2(){
        System.out.println("子类的a = " + this.a);
        System.out.println("子类的b = " + this.b);
        System.out.println("父类的c = " + this.c);
        System.out.println("父类的a = " + super.a);
        System.out.println("父类的b = " + super.b);
    }

    public void func1(){
        this.a = 10;
        this.b = 20;
        this.c = 30;

        System.out.println("a = " + a);
        System.out.println("b = " + b);
        System.out.println("c = " + c);
    }
}
